﻿using JESAI.Core.DependencyInjection;
using JESAI.Core.Modularity;

namespace JESAI.Core.Builders
{
    /// <summary>
    /// JESAI构建器(<see cref="IJESAIBuilder"/>) 扩展
    /// </summary>
    public static class JESAIBuilderExtensions
    {
        /// <summary>
        /// 添加核心模块
        /// </summary>
        /// <param name="builder">JESAI构建器</param>
        internal static IJESAIBuilder AddCoreModule(this IJESAIBuilder builder) =>
            builder.AddModule<JESAICoreModule>()
                .AddModule<DependencyModule>();
    }
}
